package com.service.single.example.pattern.observer;

/**
 * 观察者 3
 */
public class ThreeObserver extends Observer {

    public ThreeObserver() {

    }

    public ThreeObserver(Subject subject) {
        subject.addObserver(this);
    }

    @Override
    public void update(int state) {

        System.out.println("ThreeObserver ===" + state);
    }

}
